package com.example.demo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Schema(description = "用户实体")
@Data
public class SysUser {

    @Schema(description = "主键id",defaultValue = "100001000")
    private Integer userId;

    @Schema(description = "部门ID",defaultValue = "56")
    private Integer deptId;

    @Schema(description = "用户账户", example = "ssadmin", requiredMode = Schema.RequiredMode.REQUIRED)
    private String userName;

    @Schema(description = "用户昵称",defaultValue = "张飞")
    private String nickName;

    @Schema(description = "用户类型",allowableValues = "00,01,02")
    private String userType;

    private String email;

    private String phonenumber;

    private String sex;

    private String avatar;

    private String password;

    private String status;

    private String delFlag;

    private String loginIp;

    private Date loginDate;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

    private String remark;
}
